<%@page import="com.saturn.website.Content"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	
<div id="top">
	一级导航 ：
	<%
		List contents = Content.getChildren("rongzhan");
		String id = request.getParameter("cid");
		
		if (!contents.isEmpty()) {
			for (int i = 0; i < contents.size(); ++i) {
				Content content = (Content)contents.get(i);
				if ("显示".equals(content.getHasShowName())) {
					if (id == null) {
						id = ((Content)(contents.get(i))).getId();
					}
				%>
				<a href="<%=content.getPath()+"?cid=" + content.getId()%>"><%out.print(content.getName());%></a><%=id.equals(content.getId()) ? "(当前项)" : "" %> | 
				<% 
				}
			}
		}
	%>
	<p>--------------------顶部------------------------</p>
</div>
